﻿<%@ Page Language="C#" MasterPageFile="~/Templates/Member.master" AutoEventWireup="true"
    CodeFile="mailBox.aspx.cs" Inherits="Member_mailBox" Title="Untitled Page" %>

<%@ Register Src="~/Controls/wucMailBoxMenu.ascx" TagName="MailBoxMenu" TagPrefix="wuc" %>
<%@ Register Assembly="Jalal.Library" TagPrefix="ucc" Namespace="Jalal.Library.Web.Control" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">

    <script src="../Javascripts/JQuery/jquery-1.3.2.min.js" type="text/javascript"></script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MiddleContent" runat="Server">
    <table border="0" width="100%">
        <tr>
            <td colspan="2">
                <ucc:ResponseMessage runat="server" ID="uccResponse"></ucc:ResponseMessage>
            </td>
        </tr>
        <tr>
            <td valign="top">
                <table width="90%" cellspacing="10" border="0">
                    <tr>
                        <td>
                         
                            <asp:DropDownList ID="ddlOptions" runat="server"  AutoPostBack="true"  CausesValidation="false" 
                                onselectedindexchanged="ddlOptions_SelectedIndexChanged" >
                            </asp:DropDownList>
                            <asp:LinkButton ID="lnkMarkRead" runat="server" onclick="lnkMarkRead_Click">Mark as Read</asp:LinkButton>
                            <asp:LinkButton ID="lnkMarkUnRead" runat="server" onclick="lnkMarkUnRead_Click">Mark as Unread</asp:LinkButton>
                            <asp:LinkButton ID="lnkDelete" runat="server" onclick="lnkDelete_Click">Delete</asp:LinkButton>
              
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:GridView ID="grvInbox" runat="server" SkinID="GridViewMailBox" Width="90%"
                             OnRowDataBound="grvInbox_RowDataBound" DataKeyNames="MessageID">
                                <Columns>
                                    <asp:TemplateField>
                                        <ItemTemplate>
                                          
                                            <asp:CheckBox ID="chkRead" runat="server" />
                                            <input id="hidRead" runat="server" type="hidden"  value='<%# Eval("IsRead")%>'/>
                                        </ItemTemplate>
                                        <ItemStyle Width="50px" HorizontalAlign="Center" />
                                    </asp:TemplateField>
                                    <asp:TemplateField>
                                        <ItemTemplate>
                                            <%# Eval("SenderName")%>
                                        </ItemTemplate>
                                        <ItemStyle Width="100px" />
                                    </asp:TemplateField>
                                    <asp:TemplateField>
                                        <ItemTemplate>
                                            <a href='<%# BCGC.BLL.Helper.CustomSiteMap.MailDetails+"?id="+Eval("MessageID") %>'>
                                                <strong>
                                                    <%# Eval("Subject")%></strong></a>
                                            <br />
                                            <font style="color: White;">
                                                <%# GetFormattedContent(Eval("Content").ToString()) %></font>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                </Columns>
                            </asp:GridView>
                        </td>
                    </tr>
                </table>
            </td>
            <td style="width: 200px;" valign="top">
                <wuc:MailBoxMenu ID="MailBoxMenu1" runat="server" />
            </td>
        </tr>
    </table>

    
</asp:Content>
